@import '~less/mixin.less';

.building {
  height: 46px;
  background: #fff;
  flex-shrink: 0;
  box-shadow:0px 1px 4px 0px rgba(0,0,0,0.1);
  position: relative;
  z-index: 20;

  .scrollable();

  ul {
    margin: 0;
    padding: 0;
    white-space: nowrap;
  }

  li {
    list-style: none;
    display: inline-block;
    height: 46px;
    line-height: 46px;
    text-align: center;
    padding: 0 26px;
    text-align: center;
    font-size: 14px;
    color: #4A4A4A;
    position: relative;

    &.active {
      color: #F32525;
      font-weight: 600;

      &:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: #F32525;
        height: 2px;
      }
    }
  }
}
.content {
  padding: 30px 15px;
  background: #F3F3F3;
}
.floor {
  flex-grow: 1;
  width: 54px;
  flex-shrink: 0;
  background: #fff;
  position: relative;
  z-index: 10;

  .scrollable();

  ul {
    padding: 0;
    margin: 0;
  }

  li {
    list-style: none;
    height: 35px;
    line-height: 35px;
    padding: 0 5px;
    font-size: 15px;
    color: #9B9B9B;
    text-align: center;

    .text-overflow();

    &.active {
      background: #F3F3F3;
      font-weight: 600;
      color: #F32525;
    }
  }
}

.house-group {
  margin-top: 30px;

  &:first-child {
    margin-top: 0;
  }

  :global {
    .ant-col-6 {
      margin-top: 2px;

      &:nth-child(1),
      &:nth-child(2),
      &:nth-child(3),
      &:nth-child(4) {
        margin-top: 0;
      }
    }
  }

  &-item {
    height: 44px;
    line-height: 42px;
    text-align: center;
    background: #fff;
    position: relative;
    font-weight: 600;
    font-size: 18px;
    color: #4A4A4A;
    border: 1px solid transparent;
    box-sizing: border-box;

    .text-overflow();

    &[disabled] {
      pointer-events: none;
      cursor: not-allowed;
      background: transparent !important;
      color: #C2C2C2 !important;
    }

    // 房源状态 1待售 2锁定 3认购 4签约 5销控

    // 待售
    &._1 {
      // border-color: #F76161;
    }
    // 锁定
    &._2 {
      // border-color: #F76161;
    }
    // 认购
    &._3 {
      // background: #F76161;
      // color: #fff;
    }
    // 签约
    &._4 {
      // background: #F76161;
      // color: #fff;
    }
    // 销控
    &._5 {
      // background: #F76161;
      // color: #fff;
    }

    // 选择
    &.active {
      background: #FFDB1B;
    }

    // 备选
    &.alternative {
      &:after {
        content: '备';
        position: absolute;
        font-size: 12px;
        width: 16px;
        height: 16px;
        background: #F76161;
        color: #fff;
        line-height: 16px;
        overflow: hidden;
        text-align: center;
        right: 0;
        top: 0;
      }
    }

    // 锁房
    &.lock {
      &:after {
        content: '锁';
        position: absolute;
        font-size: 12px;
        width: 16px;
        height: 16px;
        background: #F76161;
        color: #fff;
        line-height: 16px;
        overflow: hidden;
        text-align: center;
        right: 0;
        top: 0;
      }
    }
  }
}

.house {
  background: #fff;

  &-header {
    border-bottom: 2px solid #F8F8F8;
    text-align: center;
    line-height: 47px;
    padding: 0 10px;
    font-weight: 600;
    font-size: 15px;
    color: #000;

    .text-overflow();
  }

  &-body {
    padding: 18px 24px;

    :global {
      .ant-col-12 {
        margin-top: 15px;

        &:nth-child(1),
        &:nth-child(2) {
          margin-top: 0;
        }
      }
    }
  }

  &-info {
    display: flex;
    text-align: left;

    &-title {
      font-size: 12px;
      max-width: 62px;
      color: #9B9B9B;
      flex-shrink: 0;
      .text-overflow();

      &:after {
        content: '：';
      }
    }

    &-value {
      font-size: 13px;
      color: #4A4A4A;
      flex-grow: 1;

      .text-overflow();
    }
  }

  &-footer {
    height: 49px;
    background: #fff;
    box-shadow:0px -1px 4px 0px rgba(223,222,220,0.4);

    &-action {
      height: 100%;
      display: flex;

      &-cancel {
        width: 163px;
        height: 49px;
        line-height: 49px;
        text-align: center;
        padding: 0 10px;
        color: #9B9B9B;
        font-size: 17px;
        flex-shrink: 0;

        .text-overflow();
      }

      &-submit {
        flex-grow: 1;
        height: 49px;
        line-height: 49px;
        font-size: 17px;
        text-align: center;
        padding: 0 10px;
        background: #FFDB1B;
        color: #000;

        &[disabled] {
          background: #eee !important;
          color: #aaa !important;
          pointer-events: none;
        }
      }
    }
  }
}

.icon-warning {
  width: 20px;
  height: 20px;
  background: url('./img/icon-warning.png') no-repeat center center;
  background-size: contain;
}

.sider {
  background: red;
}
